/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase202202 - While1
 * <p>Powered by Lisi On 2022-06-02 09:21:35
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class While1 {
    public static void main(String[] args) {
        //while 语句
        //1-4
        int i = 1;
        while(i<7){
            System.out.println(i++);
            if(i>=4){
                break;
            }
        }
        //6-1
        while(i>1){
            System.out.printf("%02d ",--i);
        }

    }
}
